/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.game.math.view.action;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import java.util.ResourceBundle;
import org.game.math.view.domain.Examination;

/**
 *
 * @author nmduc
 */
class NewGameAction(name:String) extends AbstractAction(name) {
    def this() = {
      this(NewGameAction.bundle.getString("item.menu.name"));
    }
    override def actionPerformed(ae:ActionEvent):Unit = {
        Examination.getInstance().reset();
    }
}
object NewGameAction {
    private val bundle:ResourceBundle = ResourceBundle.getBundle("org.game.math.view.action.NewGameAction");
}
